﻿/*
 * This software is the confidential and proprietary
 * information of NetBay
 * Such confidential information should not be disclosed
 * NetBay copyright(c) 2010
 */

#region Using
using System;
using System.Runtime.Serialization;
using System.Text;
#endregion

namespace NetBay.Core.BusinessEntities
{

    [DataContract]
    /// <summary>
    /// Class handle a StateDoc (one row of r_doc_etat table)
    /// <remarks>
    /// Columns :
    ///     DOC_ETAT_ID         (long)
    ///     DOC_ETAT_LIBELLE    (string)
    /// </remarks>
    /// </summary>
    public class StateDoc : ReturnObject
    {
        #region Private members

        /// <summary>
        /// DOC_ETAT_ID
        /// </summary>
        private long m_lStateId;
        [DataMember]
        public long StateId
        {
            get { return m_lStateId; }
            set { m_lStateId = value; }
        }

        /// <summary>
        /// DOC_ETAT_LIBELLE
        /// </summary>
        private string m_szWordingStateDoc;
        [DataMember]
        public string WordingStateDoc
        {
            get { return m_szWordingStateDoc; }
            set { m_szWordingStateDoc = value; }
        }

        #endregion

        #region Init/Constructor
        /// <summary>
        /// Default constructor 
        /// </summary>
        public StateDoc()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="Folder"/> class for error usages
        /// </summary>
        /// <param name="errorMessage">The error message.</param>
        /// <param name="applicationException">The application exception.</param>
        public StateDoc(string errorMessage, Exception applicationException = null)
            : base(errorMessage, applicationException)
        {
        }
        #endregion

        #region ToString
        /// <summary>
        /// Extend default description of class
        /// </summary>
        /// <returns>description of instance</returns>
        public override string ToString()
        {
            StringBuilder parameters = new StringBuilder("StateId<", 4096);
            parameters.Append(StateId); parameters.Append("> ");
            parameters.Append("WordingStateDoc<"); parameters.Append(WordingStateDoc); parameters.Append("> ");
            return parameters.ToString();
        }
        #endregion

        public override object Clone()
        {
            throw new NotImplementedException();
        }
    }
}


